package org.nf.box.service;

import org.nf.box.domain.Comment;
import org.nf.box.domain.SubComments;
import org.nf.box.web.vo.CommentVO;
import org.nf.box.web.vo.SubCommentVO;

import java.util.List;
import java.util.Map;

/**
 * @Author lzp
 * @Date 2024-12-29
 */
public interface SubCommentService {
    /**
     * 添加子评论
     * @param subComments 评论
     */
    void addComment(SubComments subComments);

    /**
     * 获取帖子父评论
     * @param parentId 帖子id
     * @return 返回帖子所有父评论
     */
    List<SubCommentVO> getSubComments(Integer parentId);
}
